package com.tencent.qf.systembiz.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tencent.qf.systembiz.dal.ErrorLogDO;
import com.tencent.qf.systembiz.dal.ApiErrorLogExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS("systemdatasource")
@Mapper
public interface ErrorLogDao {
    long countByExample(ApiErrorLogExample example);

    int deleteByExample(ApiErrorLogExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ErrorLogDO record);

    int insertSelective(ErrorLogDO record);

    List<ErrorLogDO> selectByExample(ApiErrorLogExample example);

    List<ErrorLogDO> selectByPage(@Param("offset") int offset, @Param("limit") int limit);

    ErrorLogDO selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ErrorLogDO record, @Param("example") ApiErrorLogExample example);

    int updateByExample(@Param("record") ErrorLogDO record, @Param("example") ApiErrorLogExample example);

    int updateByPrimaryKeySelective(ErrorLogDO record);

    int updateByPrimaryKey(ErrorLogDO record);
}